package com.jingluo

class StringAndGString {

    public static void main(String[] args) {

        assert 'c'.getClass() == String
        assert "c".getClass() == String
        assert "c${1}".getClass() in GString

        println("xx".is("xx"))

        def t1 = 't1'
        String t2 = 't2'
        def t3 = 't3'

        def var = 'text'
        println var
        var = 5
        println var + 1


        def map = [Bob: 42, Alice: 54, Max: 55]
        map.each { node -> println "Name:$node.key Age:$node.value" }


    }
}
